package com.huanglj.taobaounion.utils;

public class UrlUtils {
    public static String CategoriesPagerByIdUrl(int categoryId,int page){
        return "discovery/" + categoryId + "/"+page;
    }

    public static String getCoverPath(String pict_url,int size) {
        return "https:" + pict_url+"_"+size+"x"+size+".jpg";
    }
    public static String getTicketPath(String click_url){
        if (click_url.startsWith("http") || click_url.startsWith("https")) {
            return click_url;
        }else {
            return "https:" + click_url;
        }
    }

    public static String getSelectContent(int favorites_id) {
        return "recommend/"+favorites_id;
    }

    public static String getSellPath(int currentPage) {
        return "onSell/"+currentPage;
    }
}
